//
// Created by mac on 2019/6/14.
// Copyright (c) 2019 Facebook. All rights reserved.
//

#import <React/UIView+React.h>
#import <React/RCTComponent.h>

#import <D2dPlayer/D2dPlayer.h>

@interface RND2dPlayer : UIView

@property(nonatomic, strong)D2dPlayer* d2dPlayer;

@property (nonatomic, copy) RCTBubblingEventBlock onPlaying;
@property (nonatomic, copy) RCTBubblingEventBlock onStopped;
@property (nonatomic, copy) RCTBubblingEventBlock onVout;

-(void) play;
-(void) pause;
-(void) mute:(BOOL)muted;
-(BOOL) takeSnapshot:(NSString*)path;
@end